package com.ntschy.common.core.entity.dataobject;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ntschy.common.core.BaseEntity;
import com.ntschy.common.core.entity.enums.SysWhetherEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 系统配置实体类
 * @author ezreal_geng
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("SYS_CONFIG")
@ApiModel(description = "系统配置实体类")
public class SysConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "参数ID")
    @TableId
    private String id;

    @ApiModelProperty(value = "参数名称")
    @TableField(value = "ConfigName")
    private String configName;

    @ApiModelProperty(value = "参数键名")
    @TableField(value = "ConfigKey")
    private String configKey;

    @ApiModelProperty(value = "参数键值")
    @TableField(value = "ConfigValue")
    private String configValue;

    @ApiModelProperty(value = "系统内置（0否 1是）")
    @TableField(value = "ConfigType")
    private SysWhetherEnum configType;

    @ApiModelProperty(value = "备注")
    @TableField(value = "Remark")
    private String remark;

    @TableField(fill = FieldFill.INSERT, value = "CreateUserID")
    private String createUserId;

    @TableField(fill = FieldFill.INSERT, value = "CreateTime")
    private String createTime;

    @TableField(fill = FieldFill.UPDATE, value = "UpdateUserID")
    private String updateUserId;

    @TableField(fill = FieldFill.UPDATE, value = "UpdateTime")
    private String updateTime;
}
